;
$(function() {
  $('#foodType > div > ul > li > a[name="foodList"]').click(
    function() {
      var url = "GetFoodsList.action";
      var foodtypeid = $(this).attr("data-foodtypeid");
      var send_data = expand({data : {
                                      foodTypeId:foodtypeid,
                                      fromPage:"foodType"
                                     }
                              },
          default_transition_option);
      $.mobile.changePage(url, send_data);
  });
  $('#foodType > div > a[name="add"]').click(
      function() {
        var url = "AddFoodType.action";
        var foodtypeid = $(this).attr("data-foodtypeid");
        var send_data = expand({data : {
                                        foodTypeId:foodtypeid,
                                        fromPage:"foodType"
                                       }
                              },
           default_transition_option);
        $.mobile.changePage(url, send_data);
  });
  $('#foodType > div > ul > li > input[type="radio"]').click(
      function() {
        $("#foodType > div > #modify").removeClass("ui-disabled");
   });
  $('#foodType > div > a[name="modify"]').click(
      function() {
        var url = "MntFoodType.action";
        var foodtypeid = $(this).attr("data-foodtypeid");
        var send_data = expand({data : {
          foodTypeId:foodtypeid,
          fromPage:"foodType"
        }
        },
        default_transition_option);
        $.mobile.changePage(url, send_data);
      });
});